package com.springmvc.action;

import com.springmvc.service.CommonDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Administrator on 2016/4/20.
 */
@Controller
public class CommonAction {

    @Autowired
    private CommonDao commonDao;

    @RequestMapping("/index")
    public  String index(){
        commonDao.getUserById();
        return "index";
    }

}
